<script>
import api from "../utils/api.js";
import {onMounted, ref} from "vue";
let data =ref()
let result = ref([{
    "id": 3,
    "username": "123",
    "password": "",
    "nickName": "",
    "sex": 1,
    "personIntroduction": "",
    "region": "",
    "address": "",
    "birthdayTime": null,
    "workTime": null,
    "eduId": 1,
    "workId": 1,
    "interestId": 1,
    "tagId": 1,
    "payId": 1,
    "configId": 1
}]);
export default {
  data() {
    return {
      data,result
    }
  },
  methods: {
    async refreshData() {
      const response = await api({
        url: 'user/pageInfo', method: "post", data:result
      });
      data.value = response
      console.log("data", data)
    }
  }
}


</script>

<template>
  <div>
    <button @click="refreshData">{{ result }}</button>
    <h1>4444444</h1>
    <h1>{{data}}</h1>
  </div>
</template>

<style scoped>


</style>